<div class="navbar navbar-inverse" role="navigation">
    <div class="logo-box pull-left">
        <a href="/">
            <img src="{{ url_for('static',filename='img/logo.png') }}" alt=""/>
        </a>
    </div>
    <div class="container clearfix">
        <div class="navbar-header">
            <a class="" href="/" title="返回ExampleFlaskApp主页">首页</a>
            <a href="/secline" title="二线">二线</a>
            <a href="/thirdline" title="三线">三线</a>
            {% if current_user.is_authenticated and current_user.name == 'Administrator' %}
                <a href="/manage" title="模板管理">模板管理</a>
            {% endif %}
        </div>
        <div class="navbar-collapse collapse" style="margin-right: -9%">
            <div class="nav-tool-box pull-right">
                <a href="/gethelp" class="iconfont icon" title="帮助手册">&#xe61d;</a>
                <div class="personal-box pull-right">
                    {% if current_user.is_authenticated %}
                        <a href="javascript:;">
                            {{ current_user.alias|default("",true) }}<span class="fa fa-angle-down"></span>
                        </a>
                        <ul class="dropdown-menu-box hidden">
                            <li>
                                <a href="/auth/user/info/{{ current_user.id }}">账户详情</a>
                            </li>
                            {% if current_user.the_group.level == 3 %}
                                <li><a href="/myThirdlist">我的日报</a></li>
                            {% elif current_user.the_group.level == 2 %}
                                <li><a href="/mySecondlist">我的日报</a></li>
                            {% elif current_user.the_group.level == 9 %}
                                <li><a href="/main/userManage">后台管理</a></li>
                            {% endif %}
                            <li>
                                <a href="/auth/logout">退出</a>
                            </li>
                        </ul>
                    {% else %}
                        <div class="empty-box clearfix">
                            <span class="noperson-login pull-left">你好，访客</span>
                            <div class="empty-login-box pull-left">
                                <a href="/auth/login">
                                    <i class="iconfont icon" title="登录">&#xe7db;</i>
                                </a>
                            </div>
                        </div>

                    {% endif %}
                </div>
                {% if current_user.is_authenticated %}
                    <div class="pull-right select-depart">
                        <span class="btn fa fa-plus" data-toggle="modal" data-target="#departModal"></span>
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
    <!-- Modal -->
    <div class="modal fade bs-example-modal-sm" id="departModal" tabindex="-1" role="dialog"
         aria-labelledby="mySmallModalLabel">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">部门列表</h4>
                </div>
                <div class="modal-body">
                    <select name="" id="departLists" class="form-control">
                    </select>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary select-depart-confirm">确认</button>
                </div>
            </div>

        </div>
    </div>
</div>
